syms x
myFun=x^2-6;

estimates = [3,2];

% Part A
disp('Part A - Secant Method')
partA_ans=secantMethod(myFun, estimates, 10^-4,3)

absDiffA=abs(partA_ans-sqrt(6))

% Part B
disp('Part A - False Position Method')
partB_ans=falsePositionMethod(myFun, estimates, 10^-4,3)

absDiffB=abs(partB_ans-sqrt(6))

%

